#include<stdio.h>
int main()
{
    int n;
    while(1)
    {
        scanf("%d",&n);
        if(n==-1)
        {
            break;
        }
        if(n==1)
        {
            printf("X\n");
            printf("-\n");
        }
        if(n==2)
        {
            printf("X X\n");
            printf(" X \n");
            printf("X X\n");
            printf("-\n");
        }
        if(n==3)
        {
            printf("X X   X X\n");
            printf(" X     X \n");
            printf("X X   X X\n");
            printf("   X X   \n");
            printf("    X    \n");
            printf("   X X   \n");
            printf("X X   X X\n");
            printf(" X     X \n");
            printf("X X   X X\n");
            printf("-\n");
        }
        if(n==4)
        {
            printf("X X   X X         X X   X X\n");
            printf(" X     X           X     X \n");
            printf("X X   X X         X X   X X\n");
            printf("   X X               X X   \n");
            printf("    X                 X    \n");
            printf("   X X               X X   \n");
            printf("X X   X X         X X   X X\n");
            printf(" X     X           X     X \n");
            printf("X X   X X         X X   X X\n");
            printf("         X X   X X         \n");
            printf("          X     X          \n");
            printf("         X X   X X         \n");
            printf("            X X            \n");
            printf("             X             \n");
            printf("            X X            \n");
            printf("         X X   X X         \n");
            printf("          X     X          \n");
            printf("         X X   X X         \n");
            printf("X X   X X         X X   X X\n");
            printf(" X     X           X     X \n");
            printf("X X   X X         X X   X X\n");
            printf("   X X               X X   \n");
            printf("    X                 X    \n");
            printf("   X X               X X   \n");
            printf("X X   X X         X X   X X\n");
            printf(" X     X           X     X \n");
            printf("X X   X X         X X   X X\n");
            printf("-\n");
        }
        if(n==5)
        {
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf(" X     X           X     X                             X     X           X     X \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf("   X X               X X                                 X X               X X   \n");
            printf("    X                 X                                   X                 X    \n");
            printf("   X X               X X                                 X X               X X   \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf(" X     X           X     X                             X     X           X     X \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf("         X X   X X                                             X X   X X         \n");
            printf("          X     X                                               X     X          \n");
            printf("         X X   X X                                             X X   X X         \n");
            printf("            X X                                                   X X            \n");
            printf("             X                                                     X             \n");
            printf("            X X                                                   X X            \n");
            printf("         X X   X X                                             X X   X X         \n");
            printf("          X     X                                               X     X          \n");
            printf("         X X   X X                                             X X   X X         \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf(" X     X           X     X                             X     X           X     X \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf("   X X               X X                                 X X               X X   \n");
            printf("    X                 X                                   X                 X    \n");
            printf("   X X               X X                                 X X               X X   \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf(" X     X           X     X                             X     X           X     X \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf("                           X X   X X         X X   X X                           \n");
            printf("                            X     X           X     X                            \n");
            printf("                           X X   X X         X X   X X                           \n");
            printf("                              X X               X X                              \n");
            printf("                               X                 X                               \n");
            printf("                              X X               X X                              \n");
            printf("                           X X   X X         X X   X X                           \n");
            printf("                            X     X           X     X                            \n");
            printf("                           X X   X X         X X   X X                           \n");
            printf("                                    X X   X X                                    \n");
            printf("                                     X     X                                     \n");
            printf("                                    X X   X X                                    \n");
            printf("                                       X X                                       \n");
            printf("                                        X                                        \n");
            printf("                                       X X                                       \n");
            printf("                                    X X   X X                                    \n");
            printf("                                     X     X                                     \n");
            printf("                                    X X   X X                                    \n");
            printf("                           X X   X X         X X   X X                           \n");
            printf("                            X     X           X     X                            \n");
            printf("                           X X   X X         X X   X X                           \n");
            printf("                              X X               X X                              \n");
            printf("                               X                 X                               \n");
            printf("                              X X               X X                              \n");
            printf("                           X X   X X         X X   X X                           \n");
            printf("                            X     X           X     X                            \n");
            printf("                           X X   X X         X X   X X                           \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf(" X     X           X     X                             X     X           X     X \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf("   X X               X X                                 X X               X X   \n");
            printf("    X                 X                                   X                 X    \n");
            printf("   X X               X X                                 X X               X X   \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf(" X     X           X     X                             X     X           X     X \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf("         X X   X X                                             X X   X X         \n");
            printf("          X     X                                               X     X          \n");
            printf("         X X   X X                                             X X   X X         \n");
            printf("            X X                                                   X X            \n");
            printf("             X                                                     X             \n");
            printf("            X X                                                   X X            \n");
            printf("         X X   X X                                             X X   X X         \n");
            printf("          X     X                                               X     X          \n");
            printf("         X X   X X                                             X X   X X         \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf(" X     X           X     X                             X     X           X     X \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf("   X X               X X                                 X X               X X   \n");
            printf("    X                 X                                   X                 X    \n");
            printf("   X X               X X                                 X X               X X   \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf(" X     X           X     X                             X     X           X     X \n");
            printf("X X   X X         X X   X X                           X X   X X         X X   X X\n");
            printf("-\n");
        }
    }
}